package com.javaee6.liimp.model;

import java.util.ArrayList;
import java.util.List;

public class MachineExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MachineExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMachineidIsNull() {
            addCriterion("machineId is null");
            return (Criteria) this;
        }

        public Criteria andMachineidIsNotNull() {
            addCriterion("machineId is not null");
            return (Criteria) this;
        }

        public Criteria andMachineidEqualTo(Integer value) {
            addCriterion("machineId =", value, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineidNotEqualTo(Integer value) {
            addCriterion("machineId <>", value, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineidGreaterThan(Integer value) {
            addCriterion("machineId >", value, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineidGreaterThanOrEqualTo(Integer value) {
            addCriterion("machineId >=", value, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineidLessThan(Integer value) {
            addCriterion("machineId <", value, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineidLessThanOrEqualTo(Integer value) {
            addCriterion("machineId <=", value, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineidIn(List<Integer> values) {
            addCriterion("machineId in", values, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineidNotIn(List<Integer> values) {
            addCriterion("machineId not in", values, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineidBetween(Integer value1, Integer value2) {
            addCriterion("machineId between", value1, value2, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineidNotBetween(Integer value1, Integer value2) {
            addCriterion("machineId not between", value1, value2, "machineid");
            return (Criteria) this;
        }

        public Criteria andMachineitemIsNull() {
            addCriterion("machineItem is null");
            return (Criteria) this;
        }

        public Criteria andMachineitemIsNotNull() {
            addCriterion("machineItem is not null");
            return (Criteria) this;
        }

        public Criteria andMachineitemEqualTo(String value) {
            addCriterion("machineItem =", value, "machineitem");
            return (Criteria) this;
        }

        public Criteria andMachineitemNotEqualTo(String value) {
            addCriterion("machineItem <>", value, "machineitem");
            return (Criteria) this;
        }

        public Criteria andMachineitemGreaterThan(String value) {
            addCriterion("machineItem >", value, "machineitem");
            return (Criteria) this;
        }

        public Criteria andMachineitemGreaterThanOrEqualTo(String value) {
            addCriterion("machineItem >=", value, "machineitem");
            return (Criteria) this;
        }

        public Criteria andMachineitemLessThan(String value) {
            addCriterion("machineItem <", value, "machineitem");
            return (Criteria) this;
        }

        public Criteria andMachineitemLessThanOrEqualTo(String value) {
            addCriterion("machineItem <=", value, "machineitem");
            return (Criteria) this;
        }

        public Criteria andMachineitemLike(String value) {
            addCriterion("machineItem like", value, "machineitem");
            return (Criteria) this;
        }

        public Criteria andMachineitemNotLike(String value) {
            addCriterion("machineItem not like", value, "machineitem");
            return (Criteria) this;
        }

        public Criteria andMachineitemIn(List<String> values) {
            addCriterion("machineItem in", values, "machineitem");
            return (Criteria) this;
        }

        public Criteria andMachineitemNotIn(List<String> values) {
            addCriterion("machineItem not in", values, "machineitem");
            return (Criteria) this;
        }

        public Criteria andMachineitemBetween(String value1, String value2) {
            addCriterion("machineItem between", value1, value2, "machineitem");
            return (Criteria) this;
        }

        public Criteria andMachineitemNotBetween(String value1, String value2) {
            addCriterion("machineItem not between", value1, value2, "machineitem");
            return (Criteria) this;
        }

        public Criteria andMachinetypeIsNull() {
            addCriterion("machineType is null");
            return (Criteria) this;
        }

        public Criteria andMachinetypeIsNotNull() {
            addCriterion("machineType is not null");
            return (Criteria) this;
        }

        public Criteria andMachinetypeEqualTo(String value) {
            addCriterion("machineType =", value, "machinetype");
            return (Criteria) this;
        }

        public Criteria andMachinetypeNotEqualTo(String value) {
            addCriterion("machineType <>", value, "machinetype");
            return (Criteria) this;
        }

        public Criteria andMachinetypeGreaterThan(String value) {
            addCriterion("machineType >", value, "machinetype");
            return (Criteria) this;
        }

        public Criteria andMachinetypeGreaterThanOrEqualTo(String value) {
            addCriterion("machineType >=", value, "machinetype");
            return (Criteria) this;
        }

        public Criteria andMachinetypeLessThan(String value) {
            addCriterion("machineType <", value, "machinetype");
            return (Criteria) this;
        }

        public Criteria andMachinetypeLessThanOrEqualTo(String value) {
            addCriterion("machineType <=", value, "machinetype");
            return (Criteria) this;
        }

        public Criteria andMachinetypeLike(String value) {
            addCriterion("machineType like", value, "machinetype");
            return (Criteria) this;
        }

        public Criteria andMachinetypeNotLike(String value) {
            addCriterion("machineType not like", value, "machinetype");
            return (Criteria) this;
        }

        public Criteria andMachinetypeIn(List<String> values) {
            addCriterion("machineType in", values, "machinetype");
            return (Criteria) this;
        }

        public Criteria andMachinetypeNotIn(List<String> values) {
            addCriterion("machineType not in", values, "machinetype");
            return (Criteria) this;
        }

        public Criteria andMachinetypeBetween(String value1, String value2) {
            addCriterion("machineType between", value1, value2, "machinetype");
            return (Criteria) this;
        }

        public Criteria andMachinetypeNotBetween(String value1, String value2) {
            addCriterion("machineType not between", value1, value2, "machinetype");
            return (Criteria) this;
        }

        public Criteria andExitsumIsNull() {
            addCriterion("exitSum is null");
            return (Criteria) this;
        }

        public Criteria andExitsumIsNotNull() {
            addCriterion("exitSum is not null");
            return (Criteria) this;
        }

        public Criteria andExitsumEqualTo(Integer value) {
            addCriterion("exitSum =", value, "exitsum");
            return (Criteria) this;
        }

        public Criteria andExitsumNotEqualTo(Integer value) {
            addCriterion("exitSum <>", value, "exitsum");
            return (Criteria) this;
        }

        public Criteria andExitsumGreaterThan(Integer value) {
            addCriterion("exitSum >", value, "exitsum");
            return (Criteria) this;
        }

        public Criteria andExitsumGreaterThanOrEqualTo(Integer value) {
            addCriterion("exitSum >=", value, "exitsum");
            return (Criteria) this;
        }

        public Criteria andExitsumLessThan(Integer value) {
            addCriterion("exitSum <", value, "exitsum");
            return (Criteria) this;
        }

        public Criteria andExitsumLessThanOrEqualTo(Integer value) {
            addCriterion("exitSum <=", value, "exitsum");
            return (Criteria) this;
        }

        public Criteria andExitsumIn(List<Integer> values) {
            addCriterion("exitSum in", values, "exitsum");
            return (Criteria) this;
        }

        public Criteria andExitsumNotIn(List<Integer> values) {
            addCriterion("exitSum not in", values, "exitsum");
            return (Criteria) this;
        }

        public Criteria andExitsumBetween(Integer value1, Integer value2) {
            addCriterion("exitSum between", value1, value2, "exitsum");
            return (Criteria) this;
        }

        public Criteria andExitsumNotBetween(Integer value1, Integer value2) {
            addCriterion("exitSum not between", value1, value2, "exitsum");
            return (Criteria) this;
        }

        public Criteria andEntersumIsNull() {
            addCriterion("enterSum is null");
            return (Criteria) this;
        }

        public Criteria andEntersumIsNotNull() {
            addCriterion("enterSum is not null");
            return (Criteria) this;
        }

        public Criteria andEntersumEqualTo(Integer value) {
            addCriterion("enterSum =", value, "entersum");
            return (Criteria) this;
        }

        public Criteria andEntersumNotEqualTo(Integer value) {
            addCriterion("enterSum <>", value, "entersum");
            return (Criteria) this;
        }

        public Criteria andEntersumGreaterThan(Integer value) {
            addCriterion("enterSum >", value, "entersum");
            return (Criteria) this;
        }

        public Criteria andEntersumGreaterThanOrEqualTo(Integer value) {
            addCriterion("enterSum >=", value, "entersum");
            return (Criteria) this;
        }

        public Criteria andEntersumLessThan(Integer value) {
            addCriterion("enterSum <", value, "entersum");
            return (Criteria) this;
        }

        public Criteria andEntersumLessThanOrEqualTo(Integer value) {
            addCriterion("enterSum <=", value, "entersum");
            return (Criteria) this;
        }

        public Criteria andEntersumIn(List<Integer> values) {
            addCriterion("enterSum in", values, "entersum");
            return (Criteria) this;
        }

        public Criteria andEntersumNotIn(List<Integer> values) {
            addCriterion("enterSum not in", values, "entersum");
            return (Criteria) this;
        }

        public Criteria andEntersumBetween(Integer value1, Integer value2) {
            addCriterion("enterSum between", value1, value2, "entersum");
            return (Criteria) this;
        }

        public Criteria andEntersumNotBetween(Integer value1, Integer value2) {
            addCriterion("enterSum not between", value1, value2, "entersum");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}